Skip to content

feat(nodejs): switch from npm to bun in parametric and AI framework weblogs#7012

Merged
rochdev merged 3 commits into
mainfrom
rochdev/feat-npm-to-bun
Jun 2, 2026
Merged

feat(nodejs): switch from npm to bun in parametric and AI framework weblogs#7012
rochdev merged 3 commits into
mainfrom
rochdev/feat-npm-to-bun

Conversation

@rochdev
Copy link
Copy Markdown
Member

@rochdev rochdev commented May 22, 2026

Summary

  • Replaces npm with bun for dependency installation in parametric tests
  • Switches anthropic-js, openai-js, and google-genai-js weblogs to use bun install
  • Adds bun.lock lockfiles for reproducible builds
  • Removes install_ddtrace.sh from the shellcheck TODO list (now clean)

Dependencies

None — this PR is independent and can be merged in any order.

Test plan

  • Verify parametric tests build and run with bun
  • Verify anthropic-js, openai-js, google-genai-js weblogs build correctly

🤖 Generated with Claude Code

…eblogs

Replaces npm with bun for dependency installation in parametric tests
and AI framework weblogs (anthropic-js, openai-js, google-genai-js),
using frozen lockfiles and hoisted linker for reproducible builds.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

CODEOWNERS have been resolved as:

utils/build/docker/nodejs/anthropic_app/bun.lock                        @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/google_genai_app/bun.lock                     @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/openai_app/bun.lock                           @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/parametric/bun.lock                           @DataDog/dd-trace-js @DataDog/system-tests-core
.shellcheck                                                             @DataDog/system-tests-core
utils/build/docker/nodejs/anthropic-js.Dockerfile                       @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/express4-typescript.Dockerfile                @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/express4.Dockerfile                           @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/express5.Dockerfile                           @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/fastify.Dockerfile                            @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/google_genai-js.Dockerfile                    @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/install_ddtrace.sh                            @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/nextjs.Dockerfile                             @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/openai-js.Dockerfile                          @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/parametric/Dockerfile                         @DataDog/dd-trace-js @DataDog/system-tests-core
utils/build/docker/nodejs/uds-express4.Dockerfile                       @DataDog/dd-trace-js @DataDog/system-tests-core

@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 Bot commented May 22, 2026

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a6036ae | Docs | Datadog PR Page | Give us feedback!

The install_ddtrace.sh script now uses bun, but it was not installed
in the weblog images (express4, express5, express4-typescript, fastify,
nextjs, uds-express4).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rochdev rochdev marked this pull request as ready for review May 29, 2026 20:53
@rochdev rochdev requested review from a team as code owners May 29, 2026 20:53
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad9ef10a6b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread utils/build/docker/nodejs/install_ddtrace.sh Outdated
- Restore install_custom_target helper (updated to use bun add)
- Use bun pm pack for local dd-trace-js to run prepack/prepare hooks
- Add 30s delay between retries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rochdev
Copy link
Copy Markdown
Member Author

rochdev commented Jun 1, 2026

@cbeauchesne Had to make a fix to install_ddtrace.sh and cleaned it up at the same time, please re-review.

@rochdev rochdev merged commit c7ae261 into main Jun 2, 2026
1319 of 1322 checks passed
@rochdev rochdev deleted the rochdev/feat-npm-to-bun branch June 2, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants